﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ChatForum.Domain;

namespace ChatForum.DataContract
{
    internal class DTOEntityMapper
    {
        internal static RoleDTOENUM RoleENUMDTO(RoleENUM entityEnum)
        {
            switch (entityEnum)
            {
                case RoleENUM.Administrator:
                    return RoleDTOENUM.Administrator;
                case RoleENUM.Guest:
                    return RoleDTOENUM.Guest;
                case RoleENUM.Member:
                    return RoleDTOENUM.Member;
                default:
                    return RoleDTOENUM.Guest;
            }
        }
        internal static RoleENUM RoleENUMDTO(RoleDTOENUM dtoEnum)
        {
            switch (dtoEnum)
            {
                case RoleDTOENUM.Administrator:
                    return RoleENUM.Administrator;
                case RoleDTOENUM.Member:
                    return RoleENUM.Member;
                case RoleDTOENUM.Guest:
                    return RoleENUM.Guest;
                default:
                    return RoleENUM.Guest;
            }
        }
    }
}
